﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SMainCityBattle2GuildInfo extends Object
    {
        public var guildId:SEntityId;
        public var guildName:String;
        public var occpySeconds:int;
        public var flags:int;
        public var lastUpdateScoreDt:Date;
        public var canCarryFlagPlayerName:String;
        public var canCarryFlagPlayerType:int;

        public function SMainCityBattle2GuildInfo()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            this.guildId.__write(param1);
            param1.writeString(this.guildName);
            param1.writeInt(this.occpySeconds);
            param1.writeInt(this.flags);
            param1.writeDate(this.lastUpdateScoreDt);
            param1.writeString(this.canCarryFlagPlayerName);
            param1.writeInt(this.canCarryFlagPlayerType);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.guildId = new SEntityId();
            this.guildId.__read(param1);
            this.guildName = param1.readString();
            this.occpySeconds = param1.readInt();
            this.flags = param1.readInt();
            this.lastUpdateScoreDt = param1.readDate();
            this.canCarryFlagPlayerName = param1.readString();
            this.canCarryFlagPlayerType = param1.readInt();
            return;
        }// end function

    }
}
